import {
	URL,
	URL_PAY,
	URL_PAY_PROXY
} from '@/config/config.js'
const post = (method, data, callback, timout, fails) => {

	let header = {
		// 'content-type': 'application/form-data;charset=UTF-8'
		// 'content-type': 'application/x-www-form-urlencoded',
		// 'connection':'keep-alive'
	}
	let timsout = 60000
	if (timout) {
		timsout = timout
	}
	let token = uni.getStorageSync('token')
	let source = 'user'
	header["Authorization"] = token
	header["token"] = source
	// }
	// console.log(data,'-------------------data---');
	uni.request({
		url: URL + method,
		method: 'POST',
		data,
		header,
		timeout: timsout,
		success: (res) => {
			if (res.statusCode == 200) {
				if (res.data.code == 1) {
					callback(res)
					return
				} else if (res.data.code == 401) {

					// #ifdef MP-WEIXIN
					const page = getCurrentPages()[0];

					if (!uni.getStorageSync("isToUrl")) {
						uni.setStorageSync('isToUrl', page.$page.fullPath)
					}
					// #endif

					uni.showModal({
						title: '提示',
						content: '登录失效，请重新登录',
						success: (s) => {
							if (s.confirm) {

								uni.$u.route({
									type: 'redirect',
									url: '/pages/login/login'
								})
							}
						}
					})


					return
				} else {
					uni.showToast({
						title: res.data.msg,
						icon: 'none',
						duration: 2000
					})
					uni.hideLoading()
					callback(res)
					return
				}
			}
			// console.log(res,'-----------------------');

		},
		fail: (err) => {
			callback(res)
		}
	})
}
const post_pay = (method, data, callback, timout, fails) => {

	let header = {
		// 'content-type': 'application/form-data;charset=UTF-8'
		// 'content-type': 'application/x-www-form-urlencoded',
		// 'connection':'keep-alive'
	}
	let timsout = 60000
	if (timout) {
		timsout = timout
	}
	let token = uni.getStorageSync('token')
	let source = 'user'
	header["Authorization"] = token
	header["token"] = source
	// }
	// console.log(data,'-------------------data---');
	
	// 使用代理URL避免跨域问题
	const apiUrl = method === '/api/pay/submit' ? URL_PAY_PROXY : URL_PAY;
	
	uni.request({
		url: apiUrl + method,
		method: 'POST',
		data,
		header,
		timeout: timsout,
		success: (res) => {
			if (res.statusCode == 200) {
				if (res.data.code == 1) {
					callback(res)
					return
				} else if (res.data.code == 401) {

					// #ifdef MP-WEIXIN
					const page = getCurrentPages()[0];

					if (!uni.getStorageSync("isToUrl")) {
						uni.setStorageSync('isToUrl', page.$page.fullPath)
					}
					// #endif

					uni.showModal({
						title: '提示',
						content: '登录失效，请重新登录',
						success: (s) => {
							if (s.confirm) {

								uni.$u.route({
									type: 'redirect',
									url: '/pages/login/login'
								})
							}
						}
					})


					return
				} else {
					uni.showToast({
						title: res.data.msg,
						icon: 'none',
						duration: 2000
					})
					callback(res)
					return
				}
			}
			// console.log(res,'-----------------------');

		},
		fail: (err) => {
			callback(res)
		}
	})
}
// get 请求
const get = (method, data, callback) => {
	let header = {
		// 'content-type': 'application/form-data;charset=UTF-8'
	}
	// if (headertoke.indexOf(method) > -1) {
	let token = uni.getStorageSync('token')
	let source = 'user'

	// 	if (!token) {
	// 		uni.navigateTo({
	// 			url: '/pages/logouser/logouser.vue'
	// 		})
	// 	} else {
	header["Authorization"] = token
	header["token"] = source
	// }
	// }
	uni.request({
		url: URL + method,
		method: 'GET',
		data,
		header,
		success: (res) => {
			callback(res)
		},
		fail: (err) => {
			callback(res)
		}
	})
}
// 图片上传
export const uploadImg = function upload(path, callback) {
	let header = {

	}
	// if (headertoke.indexOf('/api/uploadimage') > -1) {
	let token = uni.getStorageSync('token')
	// if (!token) {
	// 	uni.navigateTo({
	// 		url: "/pages/logouser/logouser.vue"
	// 	})
	// } else {
	header["token"] = token
	// }
	// }
	uni.uploadFile({
		url: URL + '/api/common/upload',
		name: 'file',
		filePath: path,
		formData: {
			// type:1
		},
		header,
		success: (res) => {
			let result = JSON.parse(res.data)
			callback(result)
		}
	})
}

// // 手机号登录 /member/login/login
export const login = (data, callback) => post('/member/login/login', data, callback)
// 	// 验证码登录 /member/login/loginCode
export const code_login = (data, callback) => post('/member/login/loginCode', data, callback)
// 获取验证码 
export const sed_code = (data, callback) => post('/system/sms/send_sms', data, callback)
// // 注册 /member/login/register
export const register = (data, callback) => post('/member/login/register', data, callback)
// 忘记密码 /member/login/forgetPass
export const forget_password = (data, callback) => post('/member/login/forgetPass', data, callback)
// 获取省市县 /system/basic/getRegion
export const get_city = (data, callback) => post('/system/basic/getRegion', data, callback)
// // 附近店铺 /shop/shop/nearby_list
export const nearby_list = (data, callback) => post('/shop/shop/nearby_list', data, callback)
// 平台优惠券 /member/coupon_center/sys_page_list
export const platform_card = (data, callback) => post('/member/coupon_center/sys_page_list', data, callback)
// 获取店铺优惠券 /member/coupon_center/shop_page_list
export const shop_card = (data, callback) => post('/member/coupon_center/shop_page_list', data, callback)
// 点击领取优惠券 /member/coupon/receive
export const give_card = (data, callback) => post('/member/coupon/receive', data, callback)
// // 奖品列表 /member/luck/prize_list
export const good_list = (data, callback) => post('/member/luck/prize_list', data, callback)
// 点击抽奖 /member/luck/log_create
export const good_list_good = (data, callback) => post('/member/luck/log_create', data, callback)
// 兑换次数  /member/luck/trade_num
export const change_num = (data, callback) => post('/member/luck/trade_num', data, callback)
// // 抽奖记录 /member/luck/log_page_list
export const good_list_massage = (data, callback) => post('/member/luck/log_page_list', data, callback)
// 注销账户 /member/member/cancel
export const remove_massage = (data, callback) => post('/member/member/cancel', data, callback)
// 修改资料 /member/personal/changeInfo
export const change_massage = (data, callback) => post('/member/personal/changeInfo', data, callback)
// 用户收货资料列表 /member/address/get_list
export const my_address_list = (data, callback) => get('/member/address/get_list', data, callback)
// 用户添加收货地址 /member/address/add
export const my_address_add = (data, callback) => post('/member/address/add', data, callback)
// 编辑收货地址 /member/address/add
export const chnage_my_address_add = (data, callback) => post('/member/address/add', data, callback)
// 删除地址
export const add_delete = (data, callback) => post('/member/address/do_delete', data, callback)

// 修改登录密码 /member/personal/changePass
export const chnage_my_login_password = (data, callback) => post('/member/personal/changePass', data, callback)
// 修改支付密码 修改支付密码
export const chnage_my_pay_password = (data, callback) => post('/member/personal/changeTradePwd', data, callback)
// 添加开票信息 /member/invoice/add
export const add_open = (data, callback) => post('/member/invoice/add', data, callback)
// 开票列表 /member/invoice/get_list
export const add_open_list = (data, callback) => post('/member/invoice/get_list', data, callback)
// 删除发票
export const do_delete = (data, callback) => post('/member/invoice/do_delete', data, callback)

// 编辑开票信息 /member/invoice/edit
export const change_my_open = (data, callback) => post('/member/invoice/edit', data, callback)

// 话费充值选项  /member/recharge_phone/money_list
export const choes_my_phone = (data, callback) => post('/member/recharge_phone/money_list', data, callback)
export const choes_my_phone2 = (data, callback) => post('/member/recharge_phone2/money_list', data, callback)
// // 手机号充值 /member/recharge_phone/recharge
export const pay_my_phone = (data, callback) => post('/member/recharge_phone/recharge', data, callback)
export const pay_my_phone2 = (data, callback) =>{
	// 0关闭 1流量主 2自定义
	// #ifdef MP-WEIXIN
	data.client = '小程序'
	//  #endif
	// #ifdef H5
	data.client = 'H5'
	// #endif
	// #ifdef APP-PLUS
	data.client = 'app'
	// #endif
	post('/member/recharge_phone2/recharge', data, callback)
} 
// 充值记录  /member/recharge_phone/page_list
export const pay_my_phone_list = (data, callback) => post('/member/recharge_phone/page_list', data, callback)

export const pay_my_phone_list2 = (data, callback) => post('/member/recharge_phone2/page_list', data, callback)

// // 我的好友 /member/invite/friends
// export const my_friend=(data,callback) =>post('/member/invite/friends',data,callback)

// 我的优惠券  /member/coupon/page_list
export const my_card = (data, callback) => post('/member/coupon/page_list', data, callback)
// 用户提现列表  /member/member/cash_list
// export const my_money_list=(data,callback) =>post('/member/coupon/page_list',data,callback)
// 获取个人信息 member/personal/material
export const get_my_massage = (data, callback) => post('/member/personal/material', data, callback)
// 用户提现  /member/member/apply_cash
export const save_money = (data, callback) => post('/member/member/apply_cash', data, callback)
// 用户订单列表 shop/transport/order_list
export const people_pay_list = (data, callback) => post('/shop/transport/order_list', data, callback)
// 用户订单详情 /shop/transport/order_detail
export const people_pay_list_detal = (data, callback) => post('/shop/transport/order_detail', data, callback)
// 确认收货  /shop/transport/take_delivery 
export const true_pay_list_detal = (data, callback) => post('/shop/transport/take_delivery ', data, callback)
// 取消订单原因 /shop/transport/order_cancel_cause
export const get_good_get = (data, callback) => post('/shop/transport/order_cancel_cause', data, callback)
// 取消订单 /shop/transport/cancel_order
export const remove_pay_list_detal = (data, callback) => post('/shop/transport/cancel_order', data, callback)
// 商品列表 /shop/goods/get_list
export const shop_list = (data, callback) => post('/shop/goods/get_list', data, callback)
// 商品信息 /shop/goods/getGoodsDetail
export const shop_list_massage = (data, callback) => post('/shop/goods/getGoodsDetail', data, callback)
// 店铺详情 /shop/shop/detail
export const shop_massage = (data, callback) => post('/shop/shop/detail', data, callback)
// 加入购物车 /shop/cart/add
export const add_car = (data, callback) => post('/shop/cart/add', data, callback)
// 购物车列表 /shop/cart/cart_list
export const car_list = (data, callback) => post('/shop/cart/cart_list', data, callback)
// 购物车数量增减 /shop/cart/cart_edit
export const shop_list_num = (data, callback) => post('/shop/cart/cart_edit', data, callback)
// 购物车删除订单 /shop/cart/del
export const car_remove = (data, callback) => post('/shop/cart/del', data, callback)
//下单初始化  /shop/order/confirm_order_page
export const true_pays = (data, callback) => post('/shop/order/confirm_order_page', data, callback)

// 下单 /shop/order/confirm_order
export const true_pays_list = (data, callback) => post('/shop/order/confirm_order', data, callback)
// 确定支付 /payment/pay/pay
export const go_pay = (data, callback) => post('/payment/pay/pay', data, callback)
export const go_pay2 = (data, callback) => post('/payment/pay2/pay', data, callback)
export const pay_submit = (data, callback) => post_pay('/api/pay/submit', data, callback)

// 点击订单列表中的修改地址  /shop/transport/refund_transport
export const true_change_my_address = (data, callback) => post('/shop/transport/refund_transport', data, callback)

// 店铺关注 /shop/collection/shop_like
export const lick_shop = (data, callback) => post('/shop/collection/shop_like', data, callback)
// 用户店铺关注列表 /shop/collection/shop_like_list
export const my_llick_shop = (data, callback) => post('/shop/collection/shop_like_list', data, callback)
// 用户关注店铺删除 /shop/collection/del_shop_like 
export const my_llick_shop_remove = (data, callback) => post('/shop/collection/del_shop_like', data, callback)
//商品收藏  /shop/collection/collection
export const good_lick = (data, callback) => post('/shop/collection/collection', data, callback)
// 点击催发货 /shop/transport/urge_send_goods
export const must_save = (data, callback) => post('/shop/transport/urge_send_goods', data, callback)
// vip选项列表 /member/vip/opt_list
export const vip_list = (data, callback) => post('/member/vip/opt_list', data, callback)
// 创建vip订单 /member/vip_order/create
export const vip_list_order = (data, callback) => post('/member/vip_order/create', data, callback)
// 积分/余额转赠转增 /member/member/transfer
export const my_score_give = (data, callback) => post('/member/member/transfer', data, callback)
// 转赠列表 /member/member/transfer_list
export const my_score_give_list = (data, callback) => post('/member/member/transfer_list', data, callback) //未对接
// 设置优先订单 

// 商品收藏列表 /shop/collection/myCollection
export const my_lick_good = (data, callback) => post('/shop/collection/myCollection', data, callback)
// 收藏商品的删除 /shop/collection/delCollection
export const my_lick_good_remove = (data, callback) => post('/shop/collection/delCollection', data, callback)

// 余额提现  /member/member/cash_list
export const my_disopt_save_list = (data, callback) => post('/member/member/cash_list', data, callback) //数据韦渲染

// 我的团队 /member/member/agent_my_team
export const my_team = (data, callback) => post('/member/member/agent_my_team', data, callback)
// 填写评价 /shop/order/order_comment 
export const write_massage = (data, callback) => post('/shop/order/order_comment ', data, callback)

// 申请开票 /shop/transport/invoice_apply
export const lick_open_massage = (data, callback) => post('/shop/transport/invoice_apply ', data, callback)
// 优先订单 /shop/transport/set_prior_order
export const one_list = (data, callback) => post('/shop/transport/set_prior_order', data, callback)

//获取我的好友 /shop/coupon/delete 
export const my_friend = (data, callback) => post('/shop/coupon/delete', data, callback)

// 获取店铺资质 /shop/shop/get_shop_auth
export const my_massage = (data, callback) => post('/shop/shop/get_shop_auth', data, callback)
// 申请代理 /member/agent/apply 
export const apply = (data, callback) => post('/member/agent/apply', data, callback)
// 申请代理联动 /system/basic/region_linkage
export const apply_join = (data, callback) => post('/system/basic/region_linkage', data, callback)
// 指定商家优惠券 /member/coupon_center/shop_coupon_list 
export const one_shop_crd = (data, callback) => post('/member/coupon_center/shop_coupon_list', data, callback)
// 推荐商家优惠券 /member/coupon_center/recommend_page_list
export const one_shop_crd_lick = (data, callback) => post('/member/coupon_center/recommend_page_list', data, callback)
// 店铺首页分类 /shop/store_category/category_one
export const shop_class = (data, callback) => post('/shop/store_category/category_one', data, callback)
// 获取城市及首字母
export const get_city_area = (data, callback) => post('/system/basic/get_city_area', data, callback)
// 首页banner及平台分类（一级大类）
export const home_banner = (data, callback) => post('/shop/index/index', data, callback)
// 领取首页抵扣金
export const get_registe_deduct = (data, callback) => post('/member/personal/get_registe_deduct', data, callback)
// 好物上新
export const like_goods = (data, callback) => post('/shop/goods/like_goods', data, callback)
// 签到列表
export const sign_log = (data, callback) => post('/member/member/sign_log', data, callback)
// 签到
export const sign = (data, callback) => post('/member/member/sign', data, callback)
// 最新订单/首页滚动-用户端
export const new_order_list = (data, callback) => post('/shop/order/new_order_list', data, callback)
// 动态banner
export const get_banner = (data, callback) => post('/shop/index/get_banner', data, callback)
// 一级平台分类接口
export const get_one_category = (data, callback) => post('/shop/index/get_one_category', data, callback)
// 消息分类列表
export const announce_type_list = (data, callback) => post('/system/announce/announce_type_list', data, callback)
// 消息列表
export const announce_list = (data, callback) => post('/system/announce/announce_list', data, callback)
// 消息清除所有未读
export const announce_clear = (data, callback) => post('/system/announce/announce_clear', data, callback)
// 消息详情
export const announce_detail = (data, callback) => post('/system/announce/announce_detail', data, callback)
// 邀请好友二维码
export const member_invite_qrcode = (data, callback) => post('/member/member/member_invite_qrcode', data, callback)

// 邀请好友收益-我的好友
export const invite_profit = (data, callback) => post('/member/personal/invite_profit', data, callback)
// 奖励记录-好友单人奖励记录
export const reward_detail_list = (data, callback) => post('/member/personal/reward_detail_list', data, callback)
// 我的钱包（余额明细/抵扣金明细）
export const my_money_deduct_detail = (data, callback) => post('/member/member/my_money_deduct_detail', data, callback)

// 转赠二维码(余额转赠二维码,积分转赠二维码,抵扣金转赠二维码)
export const transfer_qrcode = (data, callback) => post('/member/member/transfer_qrcode', data, callback)
// 充值接口
export const recharge_set = (data, callback) => post('/member/recharge/recharge_set', data, callback)
// 支付接口
export const pay = (data, callback) => post('/payment/pay/pay', data, callback)
export const pay2 = (data, callback) => post('/payment/pay2/pay', data, callback)
// 积分兑换抵扣金
export const score_exchange_deduct = (data, callback) => post('/member/member/score_exchange_deduct', data, callback)

// 积分兑换抵扣金初始化数据
export const score_deduct_init = (data, callback) => post('/member/member/score_deduct_init', data, callback)
// 积分兑换抵扣金记录-兑换记录
export const exchange_detail_list = (data, callback) => post('/member/member/exchange_detail_list', data, callback)
// 贡献值记录
export const con_val_list = (data, callback) => post('/shop/order/con_val_list', data, callback)
// 关于我们
export const about_us = (data, callback) => post('/system/basic/about_us', data, callback)
// 帮助中心
export const help_center = (data, callback) => post('/system/basic/help_center', data, callback)
// 联系客服
export const service_telephone = (data, callback) => post('/system/basic/service_telephone', data, callback)
// 我的团队列表/我的市代(用户端)-区域代理模块
export const agent_my_team_list = (data, callback) => post('/member/member/agent_my_team_list', data, callback)
// 我的商户(用户端)-合伙人模块
export const my_merchant_list = (data, callback) => post('/member/member/my_merchant_list', data, callback)
// 退货原因
export const refund_cause = (data, callback) => post('/shop/shop/refund_cause', data, callback)
// 物流公司
export const shop_delivery_list = (data, callback) => post('/shop/shop/shop_delivery_list', data, callback)
// 申请售后
export const refund_apply = (data, callback) => post('/shop/transport/refund_apply', data, callback)
// 售后列表
export const refund_list = (data, callback) => post('/shop/transport/refund_list', data, callback)
// 售后详情
export const refund_detail = (data, callback) => post('/shop/transport/refund_detail', data, callback)
// 贡献值
export const get_con_val = (data, callback) => post('/shop/order/get_con_val', data, callback)
// 修改地址
export const change_address = (data, callback) => post('/shop/transport/change_address', data, callback)
// 订单数据回显
export const confirm_order_page = (data, callback) => post('/shop/order/confirm_order_page', data, callback)
// 查看发票
export const view_invoice = (data, callback) => post('/shop/transport/view_invoice', data, callback)
// 发票列表
export const invoice_order_list = (data, callback) => post('/shop/transport/invoice_order_list', data, callback)
// 申请开票
export const invoice_apply = (data, callback) => post('/shop/transport/invoice_apply', data, callback)
// 删除发票
export const invoice_order_delete = (data, callback) => post('/shop/transport/invoice_order_delete', data, callback)
// 开票历史
export const invoice_history_list = (data, callback) => post('/shop/transport/invoice_history_list', data, callback)
// 订单核销二维码
export const order_finish_after_verification_qrcode = (data, callback) => post(
	'/shop/transport/order_finish_after_verification_qrcode', data, callback)
// 订单核销二维码
export const set_prior_order = (data, callback) => post('/shop/transport/set_prior_order', data, callback)
// 根据手机号获取头像名称
export const get_member_by_mobile = (data, callback) => post('/member/personal/get_member_by_mobile', data, callback)
//  申请店铺资料  /shop/shop/apply_shop
export const change_shop_massage = (data, callback) => post('/shop/shop/apply_shop', data, callback)
//  用户协议
export const user_agreement = (data, callback) => post('/system/basic/user_agreement', data, callback)
//  隐私协议
export const privacy_policy = (data, callback) => post('/system/basic/privacy_policy', data, callback)
export const shop_start_address = (data, callback) => post('/system/basic/getRegion', data, callback)
export const custom_button = (data, callback) => post('/shop/index/custom_button', data, callback)
export const getDcScore = (data, callback) => post('/member/recharge_phone/getDcScore', data, callback)
export const getDcScore2 = (data, callback) => post('/member/recharge_phone2/getDcScore', data, callback)
export const bjg_close_des = (data, callback) => post('/system/basic/bjg_close_des', data, callback)
export const bjg_cancel_des = (data, callback) => post('/system/basic/bjg_cancel_des', data, callback)
export const agent_level_list = (data, callback) => post('/member/agent/agent_level_list', data, callback)
export const getcitycode = (data, callback) => post('/system/Basic/getcitycode', data, callback)
export const cancel_apply = (data, callback) => post('/member/agent/cancel_apply', data, callback)
export const get_express_info = (data, callback) => post('/shop/transport/get_express_info', data, callback)
export const get_con_val_list = (data, callback) => post('/shop/order/get_con_val_list', data, callback)
export const goods_comment_list = (data, callback) => post('/shop/order/goods_comment_list', data, callback)
export const my_history = (data, callback) => post('/member/personal/my_history', data, callback)
export const notice_list = (data, callback) => post('/shop/shop/notice_list', data, callback)
export const wxapp_login = (data, callback) => post('/member/login/wxapp_login', data, callback)
export const alipay_login = (data, callback) => post('/member/login/alipay_login', data, callback)

export const partner_zt_list = (data, callback) => post('/member/member/partner_zt_list', data, callback)
export const partner_jt_list = (data, callback) => post('/member/member/partner_jt_list', data, callback)
export const member_account_set = (data, callback) => post('/member/member/member_account_set', data, callback)
export const member_account_get = (data, callback) => post('/member/member/member_account_get', data, callback)
export const agent_shop_list = (data, callback) => post('/member/member/agent_shop_list', data, callback)
export const getWechatPhoneNumber = (data, callback) => post('/member/login/getWechatPhoneNumber', data, callback)
export const getAlipayPhoneNumber = (data, callback) => post('/member/login/getAlipayPhoneNumber', data, callback)
export const get_lucy_express = (data, callback) => post('/member/luck/get_lucy_express', data, callback)
export const conf = (data, callback) => post('/system/basic/conf', data, callback)
export const common_search = (data, callback) => post('/shop/goods/common_search', data, callback)
export const myOrderStatistics = (data, callback) => post('/member/personal/myOrderStatistics', data, callback)
export const announce_lists = (data, callback) => post('/system/basic/announce_list', data, callback)
export const supplement_apply = (data, callback) => post('/shop/order/supplement_apply', data, callback)
export const lifeRechargeType = (data, callback) => post('/member/recharge_phone/lifeRechargeType', data, callback)
export const lifeRechargeType2 = (data, callback) => post('/member/recharge_phone2/lifeRechargeType', data, callback)
export const apply_list = (data, callback) => post('/member/member/apply_list', data, callback)
export const card_recharge = (data, callback) => post('/member/member/card_recharge', data, callback)
export const getWindow = (data, callback) => post('/member/window/getWindow', data, callback)
export const getGasCompany = (data, callback) => post('/member/window/getGasCompany', data, callback)

export const getAd = (data, callback) => {
	// 0关闭 1流量主 2自定义
	// #ifdef MP-WEIXIN
	data.client = '小程序'
	//  #endif

	// #ifndef MP-WEIXIN
	data.client = 'app'
	// #endif
	return post('/member/advertise/getAd', data, callback)
}

export const getQrcodeImg = (data, callback) => post('/member/recharge_phone2/qrCode', data, callback)

export const createScanOrder = (data, callback) => post('/member/recharge_phone2/createScanOrder', data, callback)


export const scanLog = (data, callback) => post('/member/recharge_phone2/scanLog', data, callback)

export const getUserData = (data, callback) => post('/member/recharge_phone2/userData', data, callback)

export const getDeduct = (data, callback) => post('/member/recharge_phone2/getDeduct', data, callback)


export const getliveBanner = (data, callback) => post('/shop/index/liveBanner', data, callback)

export const getHolding = (data, callback) => post('/member/recharge_phone2/getHolding', data, callback)


export const getHoldingRemark = (data, callback) => post('/member/recharge_phone2/getHoldingRemark', data, callback)

export const getExclusive = (data, callback) => post('/member/recharge_phone2/getExclusive', data, callback)

export const myQrCodeList = (data, callback) => post('/member/personal/myQrCodeList', data, callback)

export const getChargeAmount = (data, callback) => post('/member/personal/getChargeAmount', data, callback)

export const deleteCode = (data, callback) => post('/member/personal/deleteCode', data, callback)

export const getChargeCode = (data, callback) => post('/member/member/getChargeCode', data, callback)

export const submitChargeCode = (data, callback) => post('/member/member/submitChargeCode', data, callback)

export const scanChargeDescription = (data, callback) => post('/member/personal/scanChargeDescription', data, callback)

export const shopDeductCharge = (data, callback) => post('/member/member/shopDeductCharge', data, callback)

export const getShopDeductMoney = (data, callback) => post('/member/member/getShopDeductMoney', data, callback)

export const getWithdrawRule = (data, callback) => post('/member/member/withdrawRule', data, callback)

export const scanStatistics = (data, callback) => post('/member/recharge_phone2/scanStatistics', data, callback)

export const copyOnWrite = (data, callback) => post('/member/personal/copyOnWrite', data, callback)

export const orderDubbing = (data, callback) => post('/member/recharge_phone/orderDubbing', data, callback)

export const shopScoreCharge = (data, callback) => post('/member/member/shopScoreCharge', data, callback)

export const getShopScoreMoney = (data, callback) => post('/member/member/getShopScoreMoney', data, callback)

export const getRule = (data, callback) => post('/shop/order/getRule', data, callback)

export const updateOrderTimingStatus = (data, callback) => post('/shop/order/updateOrderTimingStatus', data, callback)

export const chargeCodeList = (data, callback) => post('/member/member/chargeCodeList', data, callback)

export const updateOrderStatus = (data, callback) => post('/shop/transport/updateOrderStatus', data, callback)

export const getRechargeBanner = (data, callback) => post('/member/carousel/getAd', data, callback)

export const getSwitch = (data, callback) => post('/shop/goods/getSwitch', data, callback)

export const operatorsSwitch = (data, callback) => post('/member/recharge_phone2/operatorsSwitch', data, callback)

export const wechatPaySwitch = (data, callback) => post('/payment/pay2/wechatPaySwitch', data, callback)

export const getServiceCode = (data, callback) => post('/member/invite/serviceCode', data, callback)

export const getActivationCost = (data, callback) => post('/member/member/getActivationCost', data, callback)

export const activationCodeCharge = (data, callback) => post('/member/member/activationCodeCharge', data, callback)

export const getDeductMoneyList = (data, callback) => post('/member/member/getDeductMoneyList', data, callback)

export const lifeBackgroundMusic = (data, callback) => post('/member/member/lifeBackgroundMusic', data, callback)

export const cardActSwitch = (data, callback) => post('/member/member/cardActSwitch', data, callback)
